﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Pagina_Maestra.master" AutoEventWireup="false" CodeFile="NuevoProyecto.aspx.vb" Inherits="NuevoProyecto" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style5
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        function validaFormato(campo) {
            return (/\.(pdf)$/).test(campo.value);
        }
        function AcceptNum(evt) {

            var nav4 = window.Event ? true : false;
            var key = nav4 ? evt.which : evt.keyCode;

            return (key <= 13 || (key >= 48 && key <= 57) || key == 44);

        }
        
    </script>
    <table class="style5">
        <tr>
            <td align="center" colspan="2">
                
               
                <asp:ToolkitScriptManager ID="ScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
            
            
            <asp:Label ID="Label1" runat="server" Text="Nuevo proyecto" BorderStyle="Groove" 
                Font-Names="Lucida Sans" Font-Size="X-Large"></asp:Label>
                
                
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Nombre Proyecto"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtnombre" runat="server" Width="221px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtnombre" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        
         <tr>
            <td style="margin-left: 80px">
                <asp:Label ID="Label3" runat="server" Text="Departamento"></asp:Label>
            </td>
            <td style="margin-left: 40px">
                <asp:DropDownList ID="ddlDepart" runat="server" AutoPostBack="True" 
                    Height="21px" Width="198px">
                    <asp:ListItem Value="0">-Seleccione-</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="ddlDepart" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label9" runat="server" Text="Provincia"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlProvin" runat="server" AutoPostBack="True" 
                    Height="21px" Width="198px">
                    <asp:ListItem Value="0">-Seleccione-</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="ddlProvin" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label10" runat="server" Text="Distrito"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlDistr" runat="server" Height="21px" Width="198px" 
                    AutoPostBack="True">
                    <asp:ListItem Value="0">-Seleccione-</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Costo Proyecto"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCosto" runat="server" Width="221px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtCosto" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <tr>
            <td>
                <asp:Label ID="Label11" runat="server" Text="Duración Estimada(meses)"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDuracion" runat="server" Width="195px"></asp:TextBox>
            </td>
        </tr>
        
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="Obsevacion"></asp:Label>
            </td>
            <td valign="top">
                <asp:TextBox ID="txtObservacion" runat="server" Width="219px" Height="85px" 
                    TextMode="MultiLine" MaxLength="255"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtObservacion" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                <asp:CustomValidator ID="CustomValidator3" runat="server" 
                    ErrorMessage="Max. 100 caracteres"></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label8" runat="server" Text="Plan de Proyecto"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="file1" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="file1" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="Etapa"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddpEtapa" runat="server" 
                    Height="21px" Width="128px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label7" runat="server" Text="Estado"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddpEstado" runat="server" 
                    Height="21px" Width="125px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr align="center">
            <td colspan="2">
                <asp:Button ID="txtProcesar" runat="server" Text="PROCESAR" />
            &nbsp;&nbsp;
                <asp:Button ID="btnregresar" runat="server" Text="REGRESAR" />
               
            
            </td>
        </tr>
    </table>
</asp:Content>

